package com.lhl.demo.config;

import lombok.extern.slf4j.Slf4j;
import org.hibernate.resource.jdbc.spi.StatementInspector;

/**
 * @className: JpaInterceptor
 * @description: TODO 类描述
 * @author: king
 * @date: 2020-10-19 17:11
 **/
@Slf4j
public class JpaInterceptor implements StatementInspector {
    @Override
    public String inspect(String sql) {
        log.debug("进入拦截器" + sql);
//        sql+= " and 1=2";
        return sql;
    }
}